﻿using SqlSugar;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Security.Principal;

namespace FoodModel
{
    /// <summary>
    /// 桌号管理表
    /// </summary>
    [Table("TableNumModel")]
    public class TableNumModel
    {
        /// <summary>
        /// 桌号管理ID
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey =true, IsIdentity=true)]
       public int TableNumId { get; set; }
        /// <summary>
        /// 桌号
        /// </summary>
        [SugarColumn(IsNullable =false)]
        public string? TableNum { get; set; }
        /// <summary>
        /// 启用
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public bool Enable { get; set; }
    }
}